<template>
  <div id="app">
    <TopBar></TopBar>
    <Header></Header>
    <router-view />
    <Footer></Footer>
  </div>
</template>
<script>
import TopBar from "@/components/TopBar.vue";
import Header from "@/components/Header.vue";
import Footer from "@/components/Footer.vue";
import { JingpinAPI } from "@/request/Api";

export default {
  components: { TopBar, Header, Footer },
  // 发送axios请求
  async created() {
    // JingpinAPI().then(
    //   (res) => {
    //     console.log(res);
    //   },
    //   (err) => {
    //     console.log(err);
    //   }
    // );
    let res = await JingpinAPI();
    // console.log(res.data.data.data.records);
  },
};
</script>
<style lang="less">
#app {
}
</style>
